package jp.sourceforge.akjrcp.text_douga.rcp;



import jp.sourceforge.akjrcp.audiomerge.AudioMergeView;
import jp.sourceforge.akjrcp.text_douga.views.syncsubimages.SyncSubImageView;
import jp.sourceforge.akjrcp.text_douga.views.test.TestGLView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public static final String ID=Perspective.class.getName();
	public void createInitialLayout(IPageLayout layout) {
		//TODO make editor
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		String folderId="text.folder1";
		IFolderLayout folder=layout.createFolder(folderId,  IPageLayout.LEFT, 1.0f, editorArea);
		//folder.addView(TestGLView.ID);
		//folder.addView(SyncSubImageView.ID);
		folder.addView(TextDougaView.ID);
		
		//layout.addPlaceholder("jp.sourceforge.akjrcp.text_douga.rcp.*", IPageLayout.LEFT, 1.0f, editorArea);
	//	layout.addView(TextDougaView.ID, IPageLayout.LEFT, 1.0f, folder);
	//	layout.addView(AudioMergeView.ID, IPageLayout.LEFT, 1.0f, folder);
		
	}
}
